﻿<%@ Page Language="C#" Theme="skin_control" MaintainScrollPositionOnPostback="true"
    AutoEventWireup="true" CodeFile="QuarterPlanList.aspx.cs" Inherits="QuarterPlan_QuarterPlanList1" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>年计划列表</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/Page_Validate.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">

        function aa(str) {
            window.open('../WebCommon/Department.aspx', '', 'width=700,height=580,top=200, left=300,scrollbars=yes');
        }

    </script>
    <script type="text/javascript" language="javascript">

        function department(str) {
            window.open('../WebCommon/Department.aspx?SID=' + str, 'this', 'width=700,height=580,top=200, left=300');
        }
    </script>
    <script language="javascript" type="text/javascript">
        function openimg(departmentid, type, dateid) {
            window.open('DisplayslogansImg.aspx?type=' + type + '&dateid=' + dateid + '&departmentid=' + departmentid, '', ' top=0,left=0,width=' + (screen.availWidth - 10) + ',height=' + (screen.availHeight - 50) + ',toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');

        }

    </script>
    <style type="text/css">
        /*标黑投影显示的表格线*/ td {
            border-width: 1px;
            border-color: Black;
        }

        th {
            border-width: 1px;
            border-color: Black;
        }

        table {
            border-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="firstbjcolor" colspan="4" style="height: 14px;">
                        <span class="currentHere">当前位置:年计划管理-&gt;查看部门年计划</span>
                    </td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;"></td>
                </tr>
                <tr>
                    <td align="center" style="width: 100%; text-align: justify; background-image: url(../images/secondRow.gif); background-repeat: repeat-x; height: 25px;">
                        <asp:DropDownList ID="drpDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="btnDisplay" runat="server" OnClick="btnDisplay_Click" Text="投影" SkinID="buttonSkin" /><asp:Button
                            ID="btnFlow" runat="server" OnClick="btnFlow_Click" SkinID="buttonSkin" Text="流程" />年份:<asp:DropDownList
                                ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged"
                                SkinID="dropdownlistSkin">
                            </asp:DropDownList>
                        年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                            OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click"
                            SkinID="buttonSkin" />
                        <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除"
                            SkinID="buttonSkin" OnClientClick="return confirm('确认要删除吗？')" />
                        <asp:Button ID="btnOutToExcel" runat="server" OnClick="btnOutToExcel_Click" SkinID="buttonSkin"
                            Text="导出Excel" Width="65px" />
                        <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click1" SkinID="buttonSkin"
                            Text="修改" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=DepartmentSlogans %>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                        <asp:GridView ID="gvlist" runat="server" AutoGenerateColumns="False" SkinID="gridviewSkinDisplay"
                            OnPageIndexChanging="gvlist_PageIndexChanging" DataKeyNames="QuarterPlanId,PlanSendState,AttachmentPath,Source,TotalPlanId,StrategicPlanId"
                            Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="4%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="4%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="QuarterPlanSortId" HeaderText="计划编号">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="计划来源">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnSource" runat="server" OnClick="lbtnSource_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" Width="27%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="27%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="7%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                    HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="7%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="7%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="25%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="5%" />
                                </asp:BoundField>
                                <%-- <asp:BoundField DataField="VerifyPeopleOpinion" HeaderText="审核意见">
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="9%" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="9%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CheckNote" HeaderText="评估意见">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="9%" Wrap="true" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="9%" />
                            </asp:BoundField>--%>
                                <%-- <asp:BoundField DataField="Remart" HeaderText="备注">
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="6%" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="6%" />
                            </asp:BoundField>--%>
                                <asp:TemplateField HeaderText="查看">
                                    <ItemTemplate>
                                        <asp:Button ID="btnQuarterPlanResolve" runat="server" Text="查看分解" OnClick="btnQuarterPlanResolve_Click"
                                            Width="95%" SkinID="buttonSkin" /><asp:Label ID="lblTopic" runat="server" Text="无年分解"
                                                Visible="False" SkinID="labelSkin"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="5%" />
                                </asp:TemplateField>
                                <%--<asp:TemplateField HeaderText="附件">
                                <ItemTemplate>
                                    <asp:Button ID="btnDownLoad" runat="server" OnClick="btnDownLoad_Click" Text="下载"
                                        Width="90%" SkinID="buttonSkin" />
                                    <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="8%" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="8%" />
                            </asp:TemplateField>--%>
                                <asp:BoundField DataField="QuarterPlanId" HeaderText="id" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="PlanSendState" HeaderText="PlanSendState" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="Source" HeaderText="Source" Visible="False" />
                                <asp:BoundField DataField="TotalPlanId" HeaderText="TotalPlanId" Visible="False" />
                                <asp:BoundField DataField="StrategicPlanId" HeaderText="StrategicPlanId" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="1" border="0" style="background-color: Black; height: 100px"
                            width="100%">
                            <tr style="background-color: #DFDEDC">
                                <td style="width: 81%; text-align: center;">上年工作总结<asp:HiddenField runat="server" ID="HPreAttachmentPath" />
                                    <asp:HiddenField runat="server" ID="HQuarterSummaryId" />
                                    字数：<label id="prelength" runat="server">0</label>
                                </td>
                                <td style="width: 11%; text-align: center;">操作
                                </td>
                                <td style="width: 8%; text-align: center;">附件
                                </td>
                            </tr>
                            <tr style="background-color: White">
                                <td style="width: 81%; text-align: left; height: 80px;">
                                    <asp:TextBox runat="server" ID="txtPreQuarterSummary" TextMode="MultiLine" Width="100%"
                                        onkeyup="calculateLength(this,'prelength');" Height="160px"></asp:TextBox>
                                    <%--  <asp:Label runat="server" ID="lblPreQuarterSummary" Visible="true"></asp:Label>--%>
                                </td>
                                <td style="width: 11%; text-align: center;">
                                    <asp:Button ID="btnAddPreQuarterSummary" runat="server" Text="添加" SkinID="buttonSkin"
                                        OnClick="btnAddPreQuarterSummary_Click" />
                                    <asp:Button runat="server" ID="btnSavePreQuarterSummary" Text="保存" Visible="false"
                                        SkinID="buttonSkin" OnClick="btnSavePreQuarterSummary_Click" />
                                </td>
                                <td style="width: 8%; text-align: center;">
                                    <asp:Button ID="btnUploadPreQuarterSummary" Width="40px" runat="server" Text="上传"
                                        SkinID="buttonSkin" OnClick="btnUpload_Click" />
                                    <asp:Button ID="btnDownPreQuarter" runat="server" Text="下载" SkinID="buttonSkin" OnClick="btnDownQuarterSummary_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="1" border="0" style="background-color: Black; height: 100px"
                            width="100%">
                            <tr style="background-color: #DFDEDC">
                                <td style="width: 81%; text-align: center;">本年工作概述
                                <asp:HiddenField runat="server" ID="HAttachmentPath" />
                                    字数：<label id="thelength" runat="server">0</label>
                                </td>
                                <td style="width: 11%; text-align: center;">操作
                                </td>
                                <td style="width: 8%; text-align: center;">附件
                                </td>
                            </tr>
                            <tr style="background-color: White;">
                                <td style="width: 81%; text-align: left; height: 80px;">
                                    <asp:TextBox runat="server" ID="txtQuarterSummary" onkeyup="calculateLength(this,'thelength');"
                                        TextMode="MultiLine" Width="99.8%" Height="160px"></asp:TextBox>
                                    <%-- <asp:Label runat="server" ID="lblQuarterSummary" Visible="true"></asp:Label>--%>
                                </td>
                                <td style="width: 11%; text-align: center;">
                                    <asp:Button ID="btnAddQuarterSummary" runat="server" Text="添加" SkinID="buttonSkin"
                                        OnClick="btnAddQuarterSummary_Click" /><asp:Button runat="server" Text="保存" Visible="false"
                                            SkinID="buttonSkin" OnClick="btnSavePreQuarterSummary_Click" ID="btnSaveQuarterSummary" />
                                </td>
                                <td style="width: 8%; text-align: center;">
                                    <asp:Button ID="btnUploadQuarterSummary" Width="40px" runat="server" Text="上传" SkinID="buttonSkin"
                                        OnClick="btnUpload_Click" />
                                    <asp:Button ID="btnDownQuarterSummary" runat="server" Text="下载" SkinID="buttonSkin"
                                        OnClick="btnDownQuarterSummary_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:GridView ID="gdvQuarterResolve" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="gvlist_PageIndexChanging"
                            SkinID="gridviewSkin" Width="884px">
                            <Columns>
                                <asp:BoundField DataField="QuarterDetailPlanId" HeaderText="计划编号" />
                                <asp:BoundField DataField="StartTime" HeaderText="起始时间" />
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" />
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称" />
                                <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门" />
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人" />
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="关联/配合部门" />
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任" />
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人" />
                                <asp:BoundField DataField="Remart" HeaderText="备注" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
        <input id="h1h" runat="server" type="hidden" />
        <input id="h2w" runat="server" type="hidden" />
    </form>
</body>
</html>
